import request from '@/utils/request'

// 查询工序参数列表
export function listRouteparam(query) {
  return request({
    url: '/mes/Routeparam/list',
    method: 'get',
    params: query
  })
}

// 查询工序参数详细
export function getRouteparam(id) {
  return request({
    url: '/mes/Routeparam/' + id,
    method: 'get'
  })
}

// 新增工序参数
export function addRouteparam(data) {
  return request({
    url: '/mes/Routeparam',
    method: 'post',
    data: data
  })
}

// 修改工序参数
export function updateRouteparam(data) {
  return request({
    url: '/mes/Routeparam',
    method: 'put',
    data: data
  })
}

// 删除工序参数
export function delRouteparam(id) {
  return request({
    url: '/mes/Routeparam/' + id,
    method: 'delete'
  })
}

// 导出工序参数
export function exportRouteparam(query) {
  return request({
    url: '/mes/Routeparam/export',
    method: 'get',
    params: query
  })
}